package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author ding
 * @since 2020-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_dimens")
public class DimensDo extends Model<DimensDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("volume")
    private Double volume;

    @TableField("weight")
    private Double weight;

    @TableField("storage_id")
    private Long storageId;

    /**
     * 快递公司
     */
    @TableField("track_id")
    private Long trackId;

    @TableField("longest")
    private Double longest;

    @TableField("minor")
    private Double minor;

    @TableField("shortest")
    private Double shortest;

    @TableField("cod")
    private Integer cod;

    @TableField("shipment_type")
    private Integer shipmentType;

    /**
     * 是否支持 非捆包  不支持 0 支持1  黑猫盒子(0)
     */
    @TableField("bundling")
    private Integer bundling;

    /**
     * 0 代表匹配报价 1 代表不匹配报价，优先级最高
     */
    @TableField("marry_price")
    private Integer marryPrice;

    @TableField("use_flag")
    private Integer useFlag;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
